package com.dream.myqiyi.account;


import com.dream.myqiyi.R;
import com.dream.myqiyi.channel.CaiwujihuaActivity;
import com.dream.myqiyi.channel.ChannelActivity;
import com.dream.myqiyi.search.GudingzichanActivity;
import com.dream.myqiyi.search.SearchActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;

import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

public class AccountActivity extends Activity {
	TextView mTitleView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.test);
		prepareView();
		mTitleView.setText(R.string.category_account);
	} 

	private void prepareView() {
		mTitleView = (TextView) findViewById(R.id.title_text);
		RelativeLayout  zygs  = (RelativeLayout ) findViewById(R.id.zy);
		RelativeLayout  lq  = (RelativeLayout ) findViewById(R.id.lq);
		RelativeLayout  gq = (RelativeLayout ) findViewById(R.id.gq);
		RelativeLayout  td  = (RelativeLayout ) findViewById(R.id.td);
		RelativeLayout  zjd  = (RelativeLayout ) findViewById(R.id.zjd);
		RelativeLayout  hz  = (RelativeLayout ) findViewById(R.id.hz);
		
		zygs.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(AccountActivity.this, ZiyuanmingxiActivity.class);
				startActivity(intent);
			}
		});
//        zygs .setOnTouchListener(new TouhListener());
//        lq.setOnTouchListener(new LqListener());
//        gq .setOnTouchListener(new GqListener());
//        td.setOnTouchListener(new TdListener());
//        zjd .setOnTouchListener(new ZjdListener());
//        hz .setOnTouchListener(new HzListener());
//		

	}
//	private final class TouhListener implements OnTouchListener{
//
//		public boolean onTouch(View v, MotionEvent event) {
////			Toast.makeText(getApplicationContext(), "---- OnTouchListener -----", event.getAction()).show();
//	          Intent intent = new Intent();
//	          intent.setClass(getApplicationContext(), ChannelActivity.class);
//	          startActivity(intent);
//	          overridePendingTransition(android.R.anim.fade_in,
//						android.R.anim.fade_out); 
//			return false;
//		}}
//	private final class LqListener implements OnTouchListener{
//
//		@Override
//		public boolean onTouch(View v, MotionEvent event) {
//			// TODO Auto-generated method stub
//			Intent intent = new Intent();
//	          intent.setClass(getApplicationContext(), ChannelActivity.class);
//	          startActivity(intent);
//	          overridePendingTransition(android.R.anim.fade_in,
//						android.R.anim.fade_out); 
//			
//			return false;
//		}}
//	private final class GqListener implements OnTouchListener{
//
//		@Override
//		public boolean onTouch(View v, MotionEvent event) {
//			// TODO Auto-generated method stub
//			Intent intent = new Intent();
//	          intent.setClass(getApplicationContext(), ChannelActivity.class);
//	          startActivity(intent);
//	          overridePendingTransition(android.R.anim.fade_in,
//						android.R.anim.fade_out); 
//			
//			return false;
//		}}
//	private final class TdListener implements OnTouchListener{
//
//		@Override
//		public boolean onTouch(View v, MotionEvent event) {
//			Intent intent = new Intent();
//	          intent.setClass(getApplicationContext(), ChannelActivity.class);
//	          startActivity(intent);
//	          overridePendingTransition(android.R.anim.fade_in,
//						android.R.anim.fade_out); 
//			return false;
//		}}
//	private final class ZjdListener implements OnTouchListener{
//
//		@Override
//		public boolean onTouch(View v, MotionEvent event) {
//			Intent intent = new Intent();
//	          intent.setClass(getApplicationContext(), ChannelActivity.class);
//	          startActivity(intent);
//	          overridePendingTransition(android.R.anim.fade_in,
//						android.R.anim.fade_out); 
//			return false;
//		}}
//	private final class HzListener implements OnTouchListener{
//
//		@Override
//		public boolean onTouch(View v, MotionEvent event) {
//			Intent intent = new Intent();
//	          intent.setClass(getApplicationContext(), ChannelActivity.class);
//	          startActivity(intent);
//	          overridePendingTransition(android.R.anim.fade_in,
//						android.R.anim.fade_out); 
//			return false;
//		}}
	
	
	
}
